import Axios from "axios";
/* import router from "@/router";
import ElementUI from 'element-ui'
import store from '@/store' */

export default Axios;


Axios.defaults.baseURL = "http://10.14.35.100:8090"


/* // 添加请求拦截器
Axios.interceptors.request.use(
    config => {
        if (localStorage.getItem('token')) {
            config.headers.Authorization = localStorage.getItem('token')
        }
        return config;
    },
    error => {
        //对请求错误做什么
        console.log("请求error：", error)
    })
//http response响应拦截器
Axios.interceptors.response.use(
    response => {

        if (response.data.code === 4001) {
            console.log(response)
            ElementUI.Message.error('登录过期，请重新登录')
            localStorage.removeItem('token')
            store.commit('RESET_STATE')
            router.push('/')
        }
        return response.data;
    },
    error => {
        console.log(new Date(), "响应发生错误：", error)
    })
 */

